public class bankAccount {
    String account_;
    String password_;
    long balance_ = 500;
    bankAccount(String account,String password,long balance ){
        balance_ = balance;
        account_ = account;
        password_ = password;
    }

    public long getBalance_() {
        return balance_;
    }

    public String getAccount_() {
        return account_;
    }

    public String getPassword_() {
        return password_;
    }
    public void addBalance(long money){
        balance_ += money;
        System.out.printf("存入%d元后，您的资产为：%d\n",money,balance_);
    }
    public void reduceBalance(long money){
        balance_ -= money;
        System.out.printf("取出%d元后，您的资产为：%d\n",money,balance_);
    }

}
